import request from '@/utils/request'

// 查询列表
export function listEconomic(query) {
  return request({
    url: '/economic/page',
    method: 'get',
    params: query
  })
}

// 查询区县致死性差异性详细
export function getModelEconomic(id) {
  return request({
    url: '/economic/getModelById?id=' + id,
    method: 'get'
  })
}

export function getModelEconomicForCopy(id) {
  return request({
    url: '/economic/getModelByIdForCopy?id=' + id,
    method: 'get'
  })
}

// 新增区县致死性差异性
export function addEconomic(data) {
  return request({
    url: '/economic/save',
    method: 'post',
    data: data
  })
}

// 修改区县致死性差异性
export function updateEconomic(data) {
  return request({
    url: '/economic/update',
    method: 'post',
    data: data
  })
}

// 删除
export function delEconomic(id) {
  return request({
    url: '/economic/delete',
    method: 'post',
    data:{
    	id:id
    }
  })
}

